<template>
  <div>
    <el-button @click="btnClick">接口调用</el-button>
  </div>
</template>
<script>
import { companyDepartment } from '@/api/departments'
export default {
  methods: {
    async btnClick() {
      const res = await companyDepartment()
      console.log(res)
    }
  }
}
</script>
<style></style>
